package com.caigou.mapper.cms;

import com.caigou.bean.cms.entity.PictureFolder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PictureFolderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PictureFolder record);

    int insertSelective(PictureFolder record);

    PictureFolder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PictureFolder record);

    int updateByPrimaryKey(PictureFolder record);

    List<PictureFolder> listPictureFolderBySuperId(@Param("superId")Integer superId, @Param("userId")String userId);

    int updatePath(PictureFolder pictureFolder);

    int updateHasSubfolder(PictureFolder pictureFolder);

    PictureFolder getRootPictureFolder();

    int updateDeleteStatus(PictureFolder pictureFolder);

    int getSubfolderCount(@Param("id")Integer id);

    PictureFolder getDefaultPictureFolder();
}